package com.neusoft.elm.service.impl;

import java.util.List;
import com.neusoft.elm.dao.BusinessDao;
import com.neusoft.elm.dao.impl.BusinessDaoImpl;
import com.neusoft.elm.po.Business;
import com.neusoft.elm.service.BusinessService;

public class BusinessServiceImpl implements BusinessService {
    
    @Override
    public List<Business> listBusinesses() {
        BusinessDao dao = new BusinessDaoImpl();
        return dao.listBusinesses();
    }
    
    @Override
    public List<Business> listBusinessByOrderTypeId(Integer orderTypeId) {
        BusinessDao dao = new BusinessDaoImpl();
        return dao.listBusinessByOrderTypeId(orderTypeId);
    }
    
    @Override
    public Business getBusinessById(Integer businessId) {
        BusinessDao dao = new BusinessDaoImpl();
        return dao.getBusinessById(businessId);
    }
}